CC = g++
LD = g++
LIBDIR = "../../lib"
INCLUDEDIR = "/usr/include"
LIBS = "-llcm"

all:
		make lcm
		make clean

lcm: lcm_config.o lcm_main.o lcm_core.o lcm_network.o
		$(LD) -L$(LIBDIR) -I$(INCLUDEDIR) $(LIBS) -o"lcm" lcm_config.o lcm_main.o lcm_core.o lcm_network.o

lcm_config.o: lcm_config.cpp
		$(CC) -c lcm_config.cpp

lcm_main.o: lcm_main.cpp
		$(CC) -c lcm_main.cpp

lcm_core.o: lcm_core.cpp
		$(CC) -c lcm_core.cpp
        
lcm_network.o: lcm_network.cpp
		$(CC) -c lcm_network.cpp

clean:
		rm -rf *.o